const app = getApp();
Page({
  data: {
    StatusBar: app.globalData.StatusBar,
    CustomBar: app.globalData.CustomBar,
    mod:null,
    list:[
        {
          id:'1',
          template:'YS001', //阳上001号模板
          name:'姓名',
          amount:100,
          family:'合家',
          type:'ys',
          paid:true
        },
        {
          id:'2',
          template:'WS001', //往生001号模板
          name:'姓名',
          amount:100,
          type:'ws',
          family:'合家累劫云',
        },
  
      ]
  },
    switchColor(e){
        switch(e){
            case 'YS001':
                return 'var(--gradualOrange)'
            break;
        }
    },
    setting(e){
        console.log(e.currentTarget.dataset.mod)
        wx.showToast({
            title:'设置成功'
        })
    },
  showModal(e) {
    this.setData({
      modalName: e.currentTarget.dataset.target
    })
  },
  hideModal(e) {
    this.setData({
      modalName: null
    })
  },
  switchSex: function (e) {
    this.setData({
      skin: e.detail.value
    });
  },
})